package com.codeying.service;

import com.codeying.dao.*;
import com.codeying.entity.*;

/**
 * Yuyue 服务类
 */
public class YuyueService extends YuyueDao {

    @Override
    public Yuyue getById(String id){
        Yuyue item = super.getById(id);
        //获取User外键数据
        item.setUseridFrn ( UserDao.me.getById(String.valueOf(item.getUserid())));
        //获取Car外键数据
        item.setCidFrn ( CarDao.me.getById(String.valueOf(item.getCid())));

        return item;
    }

}

